Optimal. Leaf size=85 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f (a-b)^{3/2}}-\frac{b \tan (e+f x)}{a f (a-b) \sqrt{a+b \tan ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0572698, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3661, 382, 377, 203} \[ \frac{\tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f (a-b)^{3/2}}-\frac{b \tan (e+f x)}{a f (a-b) \sqrt{a+b \tan ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3661
Rule 382
Rule 377
Rule 203
Rubi steps
\begin{align*} \int \frac{1}{\left (a+b \tan ^2(e+f x)\right )^{3/2}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \left (a+b x^2\right )^{3/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{b \tan (e+f x)}{a (a-b) f \sqrt{a+b \tan ^2(e+f x)}}+\frac{\operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\tan (e+f x)\right )}{(a-b) f}\\ &=-\frac{b \tan (e+f x)}{a (a-b) f \sqrt{a+b \tan ^2(e+f x)}}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-(-a+b) x^2} \, dx,x,\frac{\tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{(a-b) f}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{(a-b)^{3/2} f}-\frac{b \tan (e+f x)}{a (a-b) f \sqrt{a+b \tan ^2(e+f x)}}\\ \end{align*}
Mathematica [C] time = 7.09181, size = 214, normalized size = 2.52 \[ \frac{4 \sin (e+f x) \cos ^3(e+f x) \sqrt{a+b \tan ^2(e+f x)} \left (a (a-b) \tan ^2(e+f x) \text{Hypergeometric2F1}\left (2,2,\frac{7}{2},\frac{(a-b) \sin ^2(e+f x)}{a}\right )+\frac{15 \left (3 a+2 b \tan ^2(e+f x)\right ) \left (a \sqrt{\frac{(a-b) \sin ^2(2 (e+f x)) \left (a+b \tan ^2(e+f x)\right )}{a^2}}-2 \sin ^{-1}\left (\sqrt{\frac{(a-b) \sin ^2(e+f x)}{a}}\right ) \left (a \cos ^2(e+f x)+b \sin ^2(e+f x)\right )\right )}{\left (\frac{(a-b) \sin ^2(2 (e+f x)) \left (a+b \tan ^2(e+f x)\right )}{a^2}\right )^{3/2}}\right )}{15 a^4 f} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 104, normalized size = 1.2 \begin{align*} -{\frac{b\tan \left ( fx+e \right ) }{a \left ( a-b \right ) f}{\frac{1}{\sqrt{a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2}}}}}+{\frac{1}{f \left ( a-b \right ) ^{2}{b}^{2}}\sqrt{{b}^{4} \left ( a-b \right ) }\arctan \left ({ \left ( a-b \right ){b}^{2}\tan \left ( fx+e \right ){\frac{1}{\sqrt{{b}^{4} \left ( a-b \right ) }}}{\frac{1}{\sqrt{a+b \left ( \tan \left ( fx+e \right ) \right ) ^{2}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.20957, size = 722, normalized size = 8.49 \begin{align*} \left [\frac{{\left (a b \tan \left (f x + e\right )^{2} + a^{2}\right )} \sqrt{-a + b} \log \left (-\frac{{\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{2} + 2 \, \sqrt{b \tan \left (f x + e\right )^{2} + a} \sqrt{-a + b} \tan \left (f x + e\right ) - a}{\tan \left (f x + e\right )^{2} + 1}\right ) - 2 \, \sqrt{b \tan \left (f x + e\right )^{2} + a}{\left (a b - b^{2}\right )} \tan \left (f x + e\right )}{2 \,{\left ({\left (a^{3} b - 2 \, a^{2} b^{2} + a b^{3}\right )} f \tan \left (f x + e\right )^{2} +{\left (a^{4} - 2 \, a^{3} b + a^{2} b^{2}\right )} f\right )}}, \frac{{\left (a b \tan \left (f x + e\right )^{2} + a^{2}\right )} \sqrt{a - b} \arctan \left (-\frac{\sqrt{b \tan \left (f x + e\right )^{2} + a}}{\sqrt{a - b} \tan \left (f x + e\right )}\right ) - \sqrt{b \tan \left (f x + e\right )^{2} + a}{\left (a b - b^{2}\right )} \tan \left (f x + e\right )}{{\left (a^{3} b - 2 \, a^{2} b^{2} + a b^{3}\right )} f \tan \left (f x + e\right )^{2} +{\left (a^{4} - 2 \, a^{3} b + a^{2} b^{2}\right )} f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]